cmake_minimum_required(VERSION 3.20.0)

file(GLOB HIEVENT_LITE_SRC frameworks/*.c)

zephyr_compile_definitions(
    FAULT_EVENT_FILE_SIZE=1024
    UE_EVENT_FILE_SIZE=1024
    STAT_EVENT_FILE_SIZE=0
    EVENT_CACHE_SIZE=256
    HIVIEW_HIEVENT_FILE_BUF_SIZE=128
)

zephyr_include_directories(
    frameworks
    interfaces/native/innerkits
)

zephyr_sources(
    frameworks/hiview_event.c
    frameworks/hiview_output_event.c
)